<template>
  <view class="case-page">
   
    <button class="jump-btn" @click="jumpToIndex">index</button>
    <button class="jump-btn" @click="jumpToLogin">注册登录页</button>
    <button class="jump-btn" @click="jumpToPage">城市探索页面</button>
	<button class="jump-btn" @click="jumpToNews">新闻页面</button>
    <button class="jump-btn" @click="jumpToIntentPage">组件传值页面</button>
  </view>
</template>

<script>   
export default {
  methods: {
	  
	  
    jumpToIndex() {
      uni.navigateTo({
        url: '/pages/index/index'
      });
    },
    jumpToLogin() {
      uni.redirectTo({
        url: '/pages/login/login'
      });
    },
	jumpToNews() {
	  uni.navigateTo({
	    url: '/pages/demos/cardViewPage/cardViewPage'
	  });
	},
    jumpToPage() {
      uni.navigateTo({
        url: '/pages/demos/citydiscovery/citydiscovery'
      });
    },
    // 新增：跳转到组件传值页面的方法
    jumpToIntentPage() {
      uni.navigateTo({
        // 路径对应IntentPage的实际位置（根据你的项目结构填写）
        url: '/pages/demos/IntentPage/IntentPage'
      });
    }
  }
}
</script>

<style scoped>
.case-page {
  padding: 30rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-title {
  font-size: 36rpx;
  font-weight: bold;
  margin-bottom: 40rpx;
}
.jump-btn {
  width: 100%;
  height: 80rpx;
  margin-bottom: 20rpx;
  border-radius: 8rpx;
}
</style>